package com.andy.basics;

import javax.faces.component.FacesComponent;
import javax.faces.component.UIViewParameter;

@FacesComponent("uiStatelessViewParameter")
public class UIStatelessViewParameter extends UIViewParameter {

	private String submittedValue;

	public UIStatelessViewParameter() {
		System.out.println("Created " + getClass().getName());
	}

	@Override
	public void setSubmittedValue(final Object submittedValue) {
		System.out.println("Setting " + submittedValue);
		this.submittedValue = (String) submittedValue;
	}

	@Override
	public String getSubmittedValue() {
		System.out.println("Getting " + this.submittedValue);
		return this.submittedValue;
	}

}
